<?php
	if (!empty($this->flashMessages)) {
        if ($this->groupType == 'status') {
            foreach ($this->flashMessages as $type=>$messages) {

    ?>
        <div class="resMsgBox <?php echo $type;?>">
            <ul>
                <?php echo '<li>'. implode('</li><li>', $messages) .'</li>'; ?>
            </ul>
        </div>
    <?php
            }
        } else {
            foreach ($this->flashMessages as $key=>$flashMessage) {
    ?>
            <div class="resMsgBox <?php echo $flashMessage['type'];?>"> <?php echo $flashMessage['message']; ?> </div>

        <?php
            }
        }
    }
?>
